﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using iuPlace.Web.Extensions;
using System.Web.Optimization;

namespace iuPlace.Web.Controllers
{
    public class CacheController : BaseController
    {
        public string VersionMobile = "18042012-0635";
        public string VersionSite = "18042012-0635";
        public CacheResult Mobile()
        {
            return this.CreateCacheResult(
                this.VersionMobile,
                new string[] {
                    Url.RouteUrl("Mobile"),                
                    BundleTable.Bundles.ResolveBundleUrl("~/css/mobile", false),
                    BundleTable.Bundles.ResolveBundleUrl("~/js/application", false),
                    BundleTable.Bundles.ResolveBundleUrl("~/js/mobile", false),
                },
                new string[] {
                },
                new Dictionary<string, string>()
                {
                });
        }

        public CacheResult Site()
        {
            return this.CreateCacheResult(
                this.VersionSite,
                new string[] {
                    Url.RouteUrl("Site"),
                    BundleTable.Bundles.ResolveBundleUrl("~/css/site", false),
                    BundleTable.Bundles.ResolveBundleUrl("~/js/application", false),
                    BundleTable.Bundles.ResolveBundleUrl("~/js/site", false),
                },
                new string[] {
                },
                new Dictionary<string, string>()
                {
                });
        }

    }
}
